package com.qikux.service;

import com.qikux.entity.Resource;
import com.qikux.entity.User;
import com.qikux.entity.UserInfo;
import com.qikux.vo.Page;
import com.qikux.vo.ResourceVo;
import com.qikux.vo.ResultVo;

import java.util.Map;

public interface DetailService {

    /**
     * 通过资源id查找资源
     * @param resId
     * @return
     */
    ResultVo<ResourceVo> queryResourceById(Long resId, User user);


    ResultVo<String> collect(Long resId, Long userId);


    ResultVo<Page<Map<String, Object>>> comment(Long resId, Page<Map<String, Object>> pageBean);

    UserInfo queryUserInfoByUserId(Long userId);

     Map<String,Object> getPhotoPath(Long userId);

    ResultVo<Map<String,Object>> isSelfRes(User user, Long resId);

    int queryDownloadCount(Long resId);
}
